﻿namespace Future.IService
{
    /// <summary>
    /// 描述：文件处理接口
    /// 创建人： yangkai
    /// 创建时间：2022/12/22 11:23:00
    /// </summary>
    public interface IFileService
    {
        /// <summary>
        /// 读取文件
        /// </summary>
        /// <param name="relativePath">相对路劲</param>
        /// <returns></returns>
        public FileStream GetFile(string relativePath);

        /// <summary>
        /// 保存文件
        /// </summary>
        /// <param name="relativePath">相对路劲</param>
        /// <param name="memoryStream"></param>
        public void WriteFile(string relativePath, MemoryStream memoryStream);
    }
}
